const Layout = () =>
  import(/* webpackChunkName: "Layout" */ "@/layout/index.vue");
import { PUBLIC_ROUTE } from "./public";

export default [
  ...PUBLIC_ROUTE,
  {
    path: "/",
    component: Layout,
    redirect: "/login",
    children: [
      // 工作台
      {
        path: "/gongzuotai",
        name: "statistic",
        meta: {
          title: "工作台",
        },
        component: () => import("@/views/statistics/index.vue"),
        // component: () => import("@/views/mall/pages/banner.vue"),
      },
      // 消息管理
      {
        path: "/xiaoxi",
        name: "messageAdmin",
        meta: {
          title: "消息管理",
        },
        component: () => import("@/views/message/index.vue"),
      },
      //供应商管理
      {
        path: "/gongyingshang",
        name: "providerAdmin",
        meta: {
          title: "供应商管理",
        },
        component: () => import("@/views/providerAdmin/index.vue"),
      },
      {
        path: "/gongyingshang/detail",
        name: "providerAdminDetail",
        meta: {
          title: "供应商详情",
        },
        component: () => import("@/views/providerAdmin/pages/detail.vue"),
      },
      {
        path: "/gongyingshang/info",
        name: "providerAdminInfo",
        meta: {
          title: "供应商编辑",
        },
        component: () => import("@/views/providerAdmin/pages/info.vue"),
      },
      {
        path: "/gongyingshang/addPrincipal",
        name: "providerAddPrincipal",
        meta: {
          title: "负责人编辑",
        },
        component: () => import("@/views/providerAdmin/pages/addPrincipal.vue"),
      },
      {
        path: "/gongyingshang/addProject",
        name: "providerAddProject",
        meta: {
          title: "项目业绩编辑",
        },
        component: () => import("@/views/providerAdmin/pages/addProject.vue"),
      },
      //产品管理
      {
        path: "/chanpin",
        name: "productAdmin",
        meta: {
          title: "产品管理",
        },
        component: () => import("@/views/productAdmin/index.vue"),
      },
      {
        path: "/chanpin/info",
        name: "productAdminInfo",
        meta: {
          title: "产品编辑",
        },
        component: () => import("@/views/productAdmin/pages/info.vue"),
      },
      {
        path: "/chanpin/detail",
        name: "productAdminDetail",
        meta: {
          title: "产品详情",
        },
        component: () => import("@/views/productAdmin/pages/detail.vue"),
      },
      {
        path: "/chanpin/changeExpert",
        name: "productChangeExpert",
        meta: {
          title: "添加负责人",
        },
        component: () => import("@/views/productAdmin/pages/changeExpert.vue"),
      },
      //项目管理
      {
        path: "/xiangmu",
        name: "projectAdmin",
        meta: {
          title: "项目管理",
        },
        component: () => import("@/views/projectAdmin/index.vue"),
      },
      {
        path: "/xiangmu/info",
        name: "projectAdminInfo",
        meta: {
          title: "项目编辑",
        },
        component: () => import("@/views/projectAdmin/pages/info.vue"),
      },
      {
        path: "/xiangmu/detail",
        name: "projectAdminDetail",
        meta: {
          title: "项目详情",
        },
        component: () => import("@/views/projectAdmin/pages/detail.vue"),
      },
      {
        path: "/xiangmu/addPrincipal",
        name: "addPrincipal",
        meta: {
          title: "添加负责人",
        },
        component: () => import("@/views/projectAdmin/pages/addPrincipal.vue"),
      },
      {
        path: "/xiangmu/addProvider",
        name: "addProvider",
        meta: {
          title: "添加供应商",
        },
        component: () => import("@/views/projectAdmin/pages/addProvider.vue"),
      },
      {
        path: "/xiangmu/addProduct",
        name: "addProduct",
        meta: {
          title: "添加产品",
        },
        component: () => import("@/views/projectAdmin/pages/addProduct.vue"),
      },
      {
        path: "/xiangmu/addBrand",
        name: "addBrand",
        meta: {
          title: "添加品牌",
        },
        component: () => import("@/views/projectAdmin/pages/addBrand.vue"),
      },
      //项目信息发布
      {
        path: "/xiangmuxinxifabu",
        name: "deploy",
        meta: {
          title: "项目信息发布管理",
        },
        component: () => import("@/views/deploy/index.vue"),
      },
      {
        path: "/xiangmuxinxifabu/info",
        name: "deployInfo",
        meta: {
          title: "项目信息发布编辑",
        },
        component: () => import("@/views/deploy/pages/info.vue"),
      },
      {
        path: "/xiangmuxinxifabu/detail",
        name: "deployDetail",
        meta: {
          title: "项目信息发布详情",
        },
        component: () => import("@/views/deploy/pages/detail.vue"),
      },
      //行业报告管理
      {
        path: "/hangyebaogao",
        name: "report",
        meta: {
          title: "行业报告管理",
        },
        component: () => import("@/views/report/index.vue"),
      },
      {
        path: "/hangyebaogao/info",
        name: "reportInfo",
        meta: {
          title: "行业报告编辑",
        },
        component: () => import("@/views/report/pages/info.vue"),
      },
      {
        path: "/hangyebaogao/detail",
        name: "reportDetail",
        meta: {
          title: "行业报告详情",
        },
        component: () => import("@/views/report/pages/detail.vue"),
      },
      //资料库管理
      {
        path: "/ziliaoku",
        name: "database",
        meta: {
          title: "资料库管理",
        },
        component: () => import("@/views/database/index.vue"),
      },
      {
        path: "/ziliaoku/info",
        name: "databaseInfo",
        meta: {
          title: "资料库编辑",
        },
        component: () => import("@/views/database/pages/info.vue"),
      },
      {
        path: "/ziliaoku/detail",
        name: "databaseDetail",
        meta: {
          title: "资料库详情",
        },
        component: () => import("@/views/database/pages/detail.vue"),
      },
      //公开课/内训管理
      {
        path: "/gongkaike",
        name: "openLesson",
        meta: {
          title: "公开课/内训管理",
        },
        component: () => import("@/views/openLesson/index.vue"),
      },
      {
        path: "/gongkaike/info",
        name: "openLessonInfo",
        meta: {
          title: "公开课/内训编辑",
        },
        component: () => import("@/views/openLesson/pages/info.vue"),
      },
      {
        path: "/gongkaike/detail",
        name: "openLessonDetail",
        meta: {
          title: "公开课/内训详情",
        },
        component: () => import("@/views/openLesson/pages/detail.vue"),
      },
      //会员权益
      {
        path: "/huiyuanquanyi",
        name: "membership",
        meta: {
          title: "会员权益管理",
        },
        component: () => import("@/views/membership/index.vue"),
      },
      {
        path: "/huiyuanquanyi/info",
        name: "membershipInfo",
        meta: {
          title: "会员权益编辑",
        },
        component: () => import("@/views/membership/pages/info.vue"),
      },
      {
        path: "/huiyuanquanyi/detail",
        name: "membershipDetail",
        meta: {
          title: "会员权益详情",
        },
        component: () => import("@/views/membership/pages/detail.vue"),
      },
      {
        path: "/huiyuanquanyi/purchaseRecord",
        name: "purchaseRecord",
        meta: {
          title: "购买记录",
        },
        component: () => import("@/views/membership/pages/purchaseRecord.vue"),
      },
      {
        path: "/huiyuanquanyi/membershipRecord",
        name: "membershipRecord",
        meta: {
          title: "会员记录",
        },
        component: () =>
          import("@/views/membership/pages/membershipRecord.vue"),
      },
      // 视频管理
      {
        path: "/shipin",
        name: "video",
        meta: {
          title: "视频管理",
        },
        component: () => import("@/views/video/index.vue"),
      },
      {
        path: "/shipin/detail",
        name: "videoDetail",
        meta: {
          title: "视频详情",
        },
        component: () => import("@/views/video/pages/detail.vue"),
      },
      //联合体管理
      {
        path: "/lianheti",
        name: "consortium",
        meta: {
          title: "联合体管理",
        },
        component: () => import("@/views/consortium/index.vue"),
      },
      {
        path: "/lianheti/info",
        name: "consortiumInfo",
        meta: {
          title: "联合体编辑",
        },
        component: () => import("@/views/consortium/pages/info.vue"),
      },
      {
        path: "/lianheti/detail",
        name: "consortiumDetail",
        meta: {
          title: "联合体详情",
        },
        component: () => import("@/views/consortium/pages/detail.vue"),
      },
      //VR展厅设置
      {
        path: "/vrzhanting",
        name: "vr",
        meta: {
          title: "VR展厅设置",
        },
        component: () => import("@/views/vr/index.vue"),
      },
      {
        path: "/vrzhanting/info",
        name: "vrInfo",
        meta: {
          title: "VR展厅编辑",
        },
        component: () => import("@/views/vr/pages/info.vue"),
      },
      //banner管理
      {
        path: "/banner",
        name: "banner",
        meta: {
          title: "banner管理",
        },
        component: () => import("@/views/banner/index.vue"),
      },
      {
        path: "/banner/info",
        name: "bannerInfo",
        meta: {
          title: "banner编辑",
        },
        component: () => import("@/views/banner/pages/info.vue"),
      },
      //服务管理
      {
        path: "/fuwu",
        name: "serve",
        meta: {
          title: "服务管理",
        },
        component: () => import("@/views/serve/index.vue"),
      },
      {
        path: "/fuwu/info",
        name: "serveInfo",
        meta: {
          title: "服务编辑",
        },
        component: () => import("@/views/serve/pages/info.vue"),
      },
      //广告管理
      {
        path: "/guanggao",
        name: "advertisement",
        meta: {
          title: "广告管理",
        },
        component: () => import("@/views/advertisement/index.vue"),
      },
      {
        path: "/guanggao/info",
        name: "advertisementInfo",
        meta: {
          title: "广告编辑",
        },
        component: () => import("@/views/advertisement/pages/info.vue"),
      },
      //专家/推手管理
      {
        path: "/zhuanjia",
        name: "expertAdmin",
        meta: {
          title: "专家/推手管理",
        },
        component: () => import("@/views/expert/index.vue"),
      },
      {
        path: "/zhuanjia/info",
        name: "expertAdminInfo",
        meta: {
          title: "专家/推手编辑",
        },
        component: () => import("@/views/expert/pages/info.vue"),
      },
      {
        path: "/zhuanjia/detail",
        name: "expertDetail",
        meta: {
          title: "专家/推手详情",
        },
        component: () => import("@/views/expert/pages/detail.vue"),
      },
      {
        path: "/zhuanjia/addProduct",
        name: "expertAddProduct",
        meta: {
          title: "专家/推手-添加商品",
        },
        component: () => import("@/views/expert/pages/addProduct.vue"),
      },
      //品牌管理
      {
        path: "/pinpai",
        name: "brandAdmin",
        meta: {
          title: "品牌管理",
        },
        component: () => import("@/views/brand/index.vue"),
      },
      {
        path: "/pinpai/info",
        name: "brandInfo",
        meta: {
          title: "品牌编辑",
        },
        component: () => import("@/views/brand/pages/info.vue"),
      },
      {
        path: "/pinpai/detail",
        name: "brandDetail",
        meta: {
          title: "品牌详情",
        },
        component: () => import("@/views/brand/pages/detail.vue"),
      },
      {
        path: "/pinpai/addProject",
        name: "brandAddProject",
        meta: {
          title: "添加合作项目",
        },
        component: () => import("@/views/brand/pages/addProject.vue"),
      },
      //用户管理
      {
        path: "/yonghu",
        name: "userAdmin",
        meta: {
          title: "用户管理",
        },
        component: () => import("@/views/user/index.vue"),
      },
      {
        path: "/yonghu/detail",
        name: "userDetail",
        meta: {
          title: "用户详情",
        },
        component: () => import("@/views/user/pages/detail.vue"),
      },
      //动态资讯管理
      {
        path: "/zixundongtai",
        name: "dynamicInformation",
        meta: {
          title: "动态资讯管理",
        },
        component: () => import("@/views/dynamicInformation/index.vue"),
      },
      {
        path: "/zixundongtai/info",
        name: "dynamicInformationInfo",
        meta: {
          title: "动态资讯编辑",
        },
        component: () => import("@/views/dynamicInformation/pages/info.vue"),
      },
      {
        path: "/zixundongtai/detail",
        name: "dynamicInformationDetail",
        meta: {
          title: "动态资讯详情",
        },
        component: () => import("@/views/dynamicInformation/pages/detail.vue"),
      },
      //角色
      {
        path: "/quanxian/juese",
        name: "jurisdictionRole",
        meta: {
          title: "角色",
        },
        component: () => import("@/views/jurisdiction/role/index.vue"),
      },
      {
        path: "/quanxian/jueseEdit",
        name: "jurisdictionRoleEdit",
        meta: {
          title: "角色编辑",
        },
        component: () => import("@/views/jurisdiction/role/addRole.vue"),
      },
      {
        path: "/quanxian/guanliyuan",
        name: "jurisdictionAdmin",
        meta: {
          title: "管理员",
        },
        component: () => import("@/views/jurisdiction/admin/index.vue"),
      },
      {
        path: "/quanxian/guanliyuanEdit",
        name: "jurisdictionAdminEdit",
        meta: {
          title: "编辑管理员",
        },
        component: () =>
          import("@/views/jurisdiction/admin/addAdministrators.vue"),
      },
      //系统配置
      {
        path: "/xitongshezhi/jioacheng",
        name: "teach",
        meta: {
          title: "教程配置",
        },
        component: () => import("@/views/system/teach/index.vue"),
      },
      {
        path: "/xitongshezhi/caozuojioacheng",
        name: "teachVideo",
        meta: {
          title: "操作教程视频",
        },
        component: () => import("@/views/system/teachVideo/index.vue"),
      },
      {
        path: "/xitongshezhi/xiangmupeizhi",
        name: "systemProject",
        meta: {
          title: "项目配置",
        },
        component: () => import("@/views/system/project/index.vue"),
      },
      {
        path: "/xitongshezhi/gongfangpeizhi",
        name: "systemProvider",
        meta: {
          title: "供方配置",
        },
        component: () => import("@/views/system/provider/index.vue"),
      },
      {
        path: "/xitongshezhi/pinpaipeizhi",
        name: "systemBrand",
        meta: {
          title: "品牌配置",
        },
        component: () => import("@/views/system/brand/index.vue"),
      },
      {
        path: "/xitongshezhi/qitapeizhi",
        name: "systemOthers",
        meta: {
          title: "其他配置",
        },
        component: () => import("@/views/system/others/index.vue"),
      },
      {
        path: "/xitongshezhi/shujuditu",
        name: "systemDataMap",
        meta: {
          title: "数据地图配置",
        },
        component: () => import("@/views/system/dataMap/index.vue"),
      },
      {
        path: "/xitongshezhi/yindaoye",
        name: "systemNavigation",
        meta: {
          title: "引导页配置",
        },
        component: () => import("@/views/system/navigation/index.vue"),
      },
      {
        path: "/xitongshezhi/yindaoye/info",
        name: "systemNavigationInfo",
        meta: {
          title: "引导页编辑",
        },
        component: () => import("@/views/system/navigation/pages/info.vue"),
      },
      {
        path: "/xitongshezhi/yinsixieyishezhi",
        name: "systemPrivacy",
        meta: {
          title: "隐私协议设置",
        },
        component: () => import("@/views/system/privacy/index.vue"),
      },
      {
        path: "/xitongshezhi/yinsixieyishezhi/info",
        name: "systemPrivacyInfo",
        meta: {
          title: "隐私协议编辑",
        },
        component: () => import("@/views/system/privacy/pages/info.vue"),
      },
      //虚拟用户设置
      {
        path: "/xitongshezhi/xuniyonghu",
        name: "virtualUser",
        meta: {
          title: "虚拟用户设置",
        },
        component: () => import("@/views/virtualUser/index.vue"),
      },
      {
        path: "/xitongshezhi/xuniyonghu/info",
        name: "virtualUserInfo",
        meta: {
          title: "虚拟用户编辑",
        },
        component: () => import("@/views/virtualUser/pages/info.vue"),
      },
      {
        path: "/xitongshezhi/xuniyonghu/videoList",
        name: "virtualUserVideoList",
        meta: {
          title: "虚拟用户视频列表",
        },
        component: () => import("@/views/virtualUser/pages/videoList.vue"),
      },
      // 商城
      {
        path: "/mall/banner",
        name: 'mallBanner',
        meta: {
          title: '首页轮播图配置'
        },
        component: () => import("@/views/mall/pages/banner.vue")
      },
      {
        path: "/mall/product",
        name: 'mallProduct',
        meta: {
          title: '首页热销商品配置'
        },
        component: () => import("@/views/mall/pages/product.vue")
      },
      {
        path: "/mall/category",
        name: 'mallCategory',
        meta: {
          title: '分类列表'
        },
        component: () => import("@/views/mall/pages/category.vue")
      },
      {
        path: "/mall/goods",
        name: 'mallGoods',
        meta: {
          title: '商品列表'
        },
        component: () => import("@/views/mall/pages/goods.vue")
      },
      {
        path: "/mall/order",
        name: 'mallOrder',
        meta: {
          title: '订单列表'
        },
        component: () => import("@/views/mall/pages/order.vue")
      },
    ],
  },
];
